<?php /* Smarty version Smarty-3.1.6, created on 2017-05-24 19:40:54
         compiled from "D:/test.cn/Test/Home/View\Index\index.html" */ ?>
<?php /*%%SmartyHeaderCode:1466958ec3f747a20b9-30244424%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '6a0710c730d2b5ff2bf8d7dc484b0f229ad62b6d' => 
    array (
      0 => 'D:/test.cn/Test/Home/View\\Index\\index.html',
      1 => 1495626052,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1466958ec3f747a20b9-30244424',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_58ec3f748873f',
  'variables' => 
  array (
    'student' => 0,
    'que1' => 0,
    'q1' => 0,
    'que2' => 0,
    'q2' => 0,
    'que3' => 0,
    'q3' => 0,
    'que4' => 0,
    'q4' => 0,
    'que5' => 0,
    'q5' => 0,
    'que6' => 0,
    'q6' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_58ec3f748873f')) {function content_58ec3f748873f($_smarty_tpl) {?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
<head>
<title><?php echo @TITLE;?>
 - 考试界面 </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="布尔教育 http://www.itbool.com" />
<link rel="stylesheet" href="<?php echo @Home_URL;?>
css/index.css" type="text/css"/>
</head>
    <body>
    	<div id="container">
    		<div class="left">
    			<p>　</p>
    			<div class="name">
    				<span>姓名：<?php echo $_smarty_tpl->tpl_vars['student']->value['name'];?>
</span> <br/>
    				<span>性别：<?php echo $_smarty_tpl->tpl_vars['student']->value['sex'];?>
</span><br/>
    				<span>准考证号：<?php echo $_smarty_tpl->tpl_vars['student']->value['t_number'];?>
</span><br/>
    				<span>身份证号：<?php echo $_smarty_tpl->tpl_vars['student']->value['id_number'];?>
</span><br/>
    			</div>
    			<p>　</p>
    			<div id="clock">
    				<p>　</p>
    				<div id="timer">倒计时开始</div>
    			</div>
    		</div>
    		<div class="right">
    			<h1>《C语言程序设计》在线考试</h1>
                <p>　</p>
    			<span class="text-center" style="color:red;margin-left:16%;">
						为保证考试的公平公正性，在考试期间请勿人为刷新或关闭浏览器，否则该考生成绩直接记为0分。</span>
				<form action="<?php echo @__SELF__;?>
" method="post" enctype="multipart/form-data">
					<div class="idTabs">一、选择题</div>
					<div class="tittle" style="margin-left:50px;width:800px;">
						<h4>1.单选题</h4>
						<?php  $_smarty_tpl->tpl_vars['q1'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['q1']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['que1']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['q1']->iteration=0;
foreach ($_from as $_smarty_tpl->tpl_vars['q1']->key => $_smarty_tpl->tpl_vars['q1']->value){
$_smarty_tpl->tpl_vars['q1']->_loop = true;
 $_smarty_tpl->tpl_vars['q1']->iteration++;
?>
						<div class="num" style="border-bottom:1px solid red">第<?php echo $_smarty_tpl->tpl_vars['q1']->iteration;?>
题</div>
						<div class="con"><?php echo $_smarty_tpl->getSubTemplate ($_smarty_tpl->tpl_vars['q1']->value['content'], $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
</div>
						<label for="<?php echo $_smarty_tpl->tpl_vars['q1']->value['id'];?>
"> 
							<input type="radio" name="<?php echo $_smarty_tpl->tpl_vars['q1']->value['id'];?>
" value="A"> A、<?php echo $_smarty_tpl->tpl_vars['q1']->value['select_a'];?>

						</label><br/>
						<label for="<?php echo $_smarty_tpl->tpl_vars['q1']->value['id'];?>
"> <input
								type="radio" name="<?php echo $_smarty_tpl->tpl_vars['q1']->value['id'];?>
" value="B"> B、<?php echo $_smarty_tpl->tpl_vars['q1']->value['select_b'];?>

						</label><br/>
						<label for="<?php echo $_smarty_tpl->tpl_vars['q1']->value['id'];?>
"> <input
								type="radio" name="<?php echo $_smarty_tpl->tpl_vars['q1']->value['id'];?>
" value="C"> C、<?php echo $_smarty_tpl->tpl_vars['q1']->value['select_c'];?>

						</label><br/>
						<label for="<?php echo $_smarty_tpl->tpl_vars['q1']->value['id'];?>
"> <input
								type="radio" name="<?php echo $_smarty_tpl->tpl_vars['q1']->value['id'];?>
" value="D"> D、<?php echo $_smarty_tpl->tpl_vars['q1']->value['select_d'];?>

						</label>
						<?php } ?>
					</div>
					<div class="tittle" style="margin-left:50px;width:800px;">
						<h4>2.多选题</h4>
						<?php  $_smarty_tpl->tpl_vars['q2'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['q2']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['que2']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['q2']->iteration=0;
foreach ($_from as $_smarty_tpl->tpl_vars['q2']->key => $_smarty_tpl->tpl_vars['q2']->value){
$_smarty_tpl->tpl_vars['q2']->_loop = true;
 $_smarty_tpl->tpl_vars['q2']->iteration++;
?>
						<div class="num" style="border-bottom:1px solid red">第<?php echo $_smarty_tpl->tpl_vars['q2']->iteration;?>
题</div>
						<div class="con"><?php echo $_smarty_tpl->getSubTemplate ($_smarty_tpl->tpl_vars['q2']->value['content'], $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
</div>
						<label><input name="<?php echo $_smarty_tpl->tpl_vars['q2']->value['id'];?>
[]" type="checkbox" value="A" />A、<?php echo $_smarty_tpl->tpl_vars['q2']->value['select_a'];?>
</label> <br/>
						<label><input name="<?php echo $_smarty_tpl->tpl_vars['q2']->value['id'];?>
[]" type="checkbox" value="B" />B、<?php echo $_smarty_tpl->tpl_vars['q2']->value['select_b'];?>
 </label> <br/>
						<label><input name="<?php echo $_smarty_tpl->tpl_vars['q2']->value['id'];?>
[]" type="checkbox" value="C" /> C、<?php echo $_smarty_tpl->tpl_vars['q2']->value['select_c'];?>
 </label> <br/>
						<label><input name="<?php echo $_smarty_tpl->tpl_vars['q2']->value['id'];?>
[]" type="checkbox" value="D" />D、<?php echo $_smarty_tpl->tpl_vars['q2']->value['select_d'];?>
</label> <br/>
						<?php } ?>
					</div>
					<div class="idTabs">二、填空题</div>
					<div class="tittle" style="margin-left:50px;width:800px;">
						<h4>1.概念填空题</h4>
						<?php  $_smarty_tpl->tpl_vars['q3'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['q3']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['que3']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['q3']->iteration=0;
foreach ($_from as $_smarty_tpl->tpl_vars['q3']->key => $_smarty_tpl->tpl_vars['q3']->value){
$_smarty_tpl->tpl_vars['q3']->_loop = true;
 $_smarty_tpl->tpl_vars['q3']->iteration++;
?>
						<div class="con">(<?php echo $_smarty_tpl->tpl_vars['q3']->iteration;?>
) <?php echo $_smarty_tpl->getSubTemplate ($_smarty_tpl->tpl_vars['q3']->value['content'], $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
<input type="text" name="<?php echo $_smarty_tpl->tpl_vars['q3']->value['id'];?>
" style="BORDER-TOP: none;BORDER-RIGHT: none; BORDER-LEFT: none; BORDER-BOTTOM: 1px solid black;"/></div>
						<?php } ?>
					</div>
					<div class="tittle" style="margin-left:50px;margin-bottom:10px;">
						<h4>2.程序填空题</h4>
						<?php  $_smarty_tpl->tpl_vars['q4'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['q4']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['que4']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['q4']->iteration=0;
foreach ($_from as $_smarty_tpl->tpl_vars['q4']->key => $_smarty_tpl->tpl_vars['q4']->value){
$_smarty_tpl->tpl_vars['q4']->_loop = true;
 $_smarty_tpl->tpl_vars['q4']->iteration++;
?>
						<div class="con">(<?php echo $_smarty_tpl->tpl_vars['q4']->iteration;?>
)<?php echo $_smarty_tpl->getSubTemplate ($_smarty_tpl->tpl_vars['q4']->value['content'], $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
<input type="text" name="<?php echo $_smarty_tpl->tpl_vars['q4']->value['id'];?>
" style="BORDER-TOP: none;BORDER-RIGHT: none; BORDER-LEFT: none; BORDER-BOTTOM: 1px solid black;"/></div>
						<?php } ?>
					</div>
					<div class="idTabs">三、程序题</div>
					<div class="tittle" style="margin-left:50px;width:800px;">
						<h4>1.程序问答题</h4>
						<?php  $_smarty_tpl->tpl_vars['q5'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['q5']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['que5']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['q5']->iteration=0;
foreach ($_from as $_smarty_tpl->tpl_vars['q5']->key => $_smarty_tpl->tpl_vars['q5']->value){
$_smarty_tpl->tpl_vars['q5']->_loop = true;
 $_smarty_tpl->tpl_vars['q5']->iteration++;
?>
						<div class="con">(<?php echo $_smarty_tpl->tpl_vars['q5']->iteration;?>
)<?php echo $_smarty_tpl->getSubTemplate ($_smarty_tpl->tpl_vars['q5']->value['content'], $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
</div>
						<textarea name="<?php echo $_smarty_tpl->tpl_vars['q5']->value['id'];?>
" cols="83" rows="8" class="textArea" /></textarea>
						<?php } ?>
					</div>
					<div class="tittle" style="margin-left:50px;width:800px;">
						<h4>2.程序编写题</h4>
						<?php  $_smarty_tpl->tpl_vars['q6'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['q6']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['que6']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['q6']->key => $_smarty_tpl->tpl_vars['q6']->value){
$_smarty_tpl->tpl_vars['q6']->_loop = true;
?>
						<div class="con"><?php echo $_smarty_tpl->getSubTemplate ($_smarty_tpl->tpl_vars['q6']->value['content'], $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
</div>
						<textarea name="<?php echo $_smarty_tpl->tpl_vars['q6']->value['id'];?>
" cols="83" rows="8" class="textArea" /></textarea>
						<?php } ?>
					</div>
					<input type="submit" value="交卷" class="loginbtn" style="margin-top:10px;background-color:#0072c6;margin-left:49px;border-radius:2px;color:#fff;padding:6px 30px;"/>
					<p>　</p>
				</form>
    		</div>
    	</div>
<SCRIPT LANGUAGE="JavaScript">   
<!--   
	var maxtime = 60*120 //1小时，按秒计算   
	function CountDown(){   
		if(maxtime>=0){   
			minutes = Math.floor(maxtime/60);   
			seconds = Math.floor(maxtime%60);   
			msg = "距考试结束还有："+minutes+"分"+seconds+"秒";   
			document.all["timer"].innerHTML=msg;   
			if(maxtime == 5*60) alert('注意，还有5分钟!');   
			--maxtime;   
			}   
	else{   
		clearInterval(timer);   
		alert("时间到，考试已结束!");   
	}   
}   
timer = setInterval("CountDown()",1000);   

//-->   
</SCRIPT>
    </body>
</html><?php }} ?>